package com.jinduplan.planmanager.mvp.contract

import com.cxz.kotlin.baselibs.mvp.IModel
import com.cxz.kotlin.baselibs.mvp.IPresenter
import com.cxz.kotlin.baselibs.mvp.IView
import com.jinduplan.planmanager.bean.HttpResult
import com.jinduplan.planmanager.bean.PersonalModifyBean
import com.jinduplan.planmanager.bean.PicSignSuccess
import com.jinduplan.planmanager.bean.PicUploadSuccess
import io.reactivex.rxjava3.core.Observable

interface PersonalContract {

    interface View : IView {
        fun uploadPiccSuccess(url:String)
        fun modifyNIckNameSuccess(nickName:String)
    }

    interface Presenter : IPresenter<View> {
        fun unloadPics(url: String)
        fun modifyNickName(name:String)
    }

    interface Model : IModel {
        fun unloadPics(url: String): Observable<HttpResult<PersonalModifyBean>>
        fun modifyNickName(name:String):Observable<HttpResult<Any>>
    }
}